Skip to content

[Microsoft SQLServer] Add support for list of Dynamic Counter values #14153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

muthu-mps
Copy link
Contributor

@muthu-mps muthu-mps commented Jun 5, 2025

  • Breaking change

Please see this issue for more details.

This PR adds capability to pass list of dynamic counter values. This way user has more flexibility to add multiple values as input to fetch the desired metrics.

This change introduces a breaking update, which is why we are releasing a new major version. Users will need to manually remove the dynamic counter input from the UI, upgrade the integration, and then re-add the dynamic counters. This is necessary because the input parameter type has changed from text to array.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

  • Install the 2.12.0 integration version
  • Validate the metrics collection.
  • Upgrade the integration to 3.0.0. Follow the manual steps mentioned in the document on upgrade.
  • Validate the metrics collection.

Related issues

@muthu-mps muthu-mps self-assigned this Jun 5, 2025
@muthu-mps muthu-mps added Integration:microsoft_sqlserver Microsoft SQL Server Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Jun 5, 2025
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@muthu-mps muthu-mps marked this pull request as ready for review June 5, 2025 10:13
@muthu-mps muthu-mps requested a review from a team as a code owner June 5, 2025 10:13
Copy link
Contributor

@ritalwar ritalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @muthu-mps

Copy link

@muthu-mps muthu-mps marked this pull request as draft June 5, 2025 10:56
@@ -43,8 +43,12 @@ sql_queries:
response_format: table
- query: "SELECT cntr_value As 're_compilations_per_sec' FROM sys.dm_os_performance_counters WHERE counter_name = 'SQL Re-Compilations/sec'"
response_format: table
- query: "SELECT counter_name, cntr_value FROM sys.dm_os_performance_counters WHERE counter_name like '{{dynamic_counter_name}}'"
{{#if dynamic_counter_name}}
{{#each dynamic_counter_name as | dynamic_counter i|}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we intend to use "i" anywhere, else remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration:microsoft_sqlserver Microsoft SQL Server Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Microsoft SQLServer] Add support for List of Dynamic counters
4 participants